<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once(APPPATH.'libraries/FirePHPCore/FirePHP.class.php');
ob_start();

class User_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
		$this->firephp = FirePHP::getInstance(true);
    }
	
	function check_login($user,$password)
    {
		//$this->db->select('*');
		$this->db->from('user');
		$this->db->where('username', $user); 
		$this->db->where('password', $password); 
		$this->firephp->log($this->db);
		$query = $this->db->get();
		$this->firephp->log($query);
		if($query->num_rows <= 0) return FALSE;
		else return $query->result() ;
    }

}

?>